package com.ruoyi.teaching.index;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.teaching.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 高频面试题对象 ya_high_interview
 *
 * @author ruoyi
 * @date 2024-04-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "interview",shards = 1,replicas = 0)
public class InterviewIndex
{
    private static final long serialVersionUID = 1L;

    /** 面试题ID */
    @Id
    private Long id;

    /** 阶段 */
    @Field(type = FieldType.Long)
    private Long stage;

    /** 搜索条件 */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String all;

    /** 面试题内容 */
    @Field(type = FieldType.Keyword,index = false)
    private String question;

    /** 答案 */
    @Field(type = FieldType.Keyword,index = false)
    private String answer;

    /** 知识点 */
    @Field(type = FieldType.Keyword)
    private String knowledgePoint;

    /** 重要性，1-一般,2-重要,3-非常重要 */
    @Field(type = FieldType.Integer)
    private Integer importance;
}
